<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>前程无限</title>
		<meta name="keywords" content="" />
		<meta name="description" content="" />
		<link rel="stylesheet" href="tpl/static/css/bootstrap.min.css" type="text/css" media="all" />
		<link rel="stylesheet" href="tpl/static/css/jquery-ui.min.css" type="text/css" media="all" />
		<link rel="stylesheet" href="tpl/Admin/common/css/admin.css" type="text/css" />
	</head>
	<script type="text/javascript" src="tpl/static/js/jquery-1.9.1.min.js"></script>
	<script type="text/javascript" src="tpl/static/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="tpl/static/js/jquery.artDialog.js?skin=aero"></script>
	<script type="text/javascript" src="tpl/static/js/iframeTools.js"></script>
	<script type="text/javascript" src="tpl/static/js/jquery.form.min.js"></script>
	<script type="text/javascript" src="tpl/static/js/jquery.validate.min.js"></script>
	<script language="javascript" src="tpl/static/js/jquery.imagePreview.js"></script>
	<script type="text/javascript" src="tpl/static/js/jquery-ui.min.js"></script>
	<script type="text/javascript" src="tpl/static/js/datepicker.js"></script>
	<script type="text/javascript" src="tpl/Admin/common/js/common.js"></script>

	<body>
		<!--顶部-->
		<nav class="navbar navbar-inverse">
			<div class="container-fluid">
				<div class="navbar-header">
					<a class="navbar-brand" href="/index.php?g=admin&m=index&a=index">前程无限后台管理</a>
				</div>

				<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
					<ul class="nav navbar-nav navbar-right">
						<li>
							<a href="http://www.vipqiancheng.com" target="_blank"><i class="glyphicon glyphicon-home"></i> 网站首页</a>
						</li>
						<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="glyphicon glyphicon-user"></i> 超级管理员【admin】 <span class="caret"></span></a>
							<ul class="dropdown-menu" role="menu">
								<li>
									<a href="/index.php?g=admin&m=user&a=password">修改密码</a>
								</li>
								<li>
									<a href="/index.php?g=admin&m=login&a=exitSystem">退出</a>
								</li>
							</ul>
						</li>
					</ul>
				</div>
				<!-- /.navbar-collapse -->
			</div>
			<!-- /.container-fluid -->
		</nav>
		<!--顶部结束-->

		<div class="container-fluid">
			<div class="row">
				<div class="col-md-2">
					<div id="nav">
						<p id="p_home"><i class="glyphicon glyphicon-home"></i> 首页</p>
						<div class="menu_body" id="b_home">
							<li><i class="glyphicon glyphicon-menu-right"></i>
								<a href="index.html">系统信息</a>
							</li>
						</div>

						<p id="p_article"><i class="glyphicon glyphicon-list-alt"></i> 文章管理</p>
						<div class="menu_body" id="b_article">
							<li>
								<a href="article.html"><i class="glyphicon glyphicon-menu-right"></i> 文章列表</a>
							</li>
							<li>
								<a href="add.html"><i class="glyphicon glyphicon-menu-right"></i> 添加文章</a>
							</li>
							<li>
								<a href="cate.html"><i class="glyphicon glyphicon-menu-right"></i> 文章分类</a>
							</li>
						</div>

						<p id="p_user"><i class="glyphicon glyphicon-user"></i> 期刊管理</p>
						<div class="menu_body" id="b_user">
							<li>
								<a href="/index.php?g=admin&m=member&a=index"><i class="glyphicon glyphicon-menu-right"></i> 期刊列表</a>
							</li>
							<li>
								<a href="/index.php?g=admin&m=record&a=add"><i class="glyphicon glyphicon-menu-right"></i> 添加期刊</a>
							</li>
						</div>

						<p id="p_qiang"><i class="glyphicon glyphicon-list-alt"></i> 投稿信息</p>
						<div class="menu_body" id="b_qiang">
							<li>
								<a href="/index.php?g=admin&m=apply&a=index"><i class="glyphicon glyphicon-menu-right"></i> 报名列表</a>
							</li>
							<li>
								<a href="/index.php?g=admin&m=apply&a=index&status=0"><i class="glyphicon glyphicon-menu-right"></i> 未处理信息</a>
							</li>
						</div>

						<p id="p_feedbook"><i class="glyphicon glyphicon-pencil"></i> 在线客服</p>
						<div class="menu_body" id="b_feedbook">
							<li>
								<a href="/index.php?g=admin&m=feedbook&a=index"><i class="glyphicon glyphicon-menu-right"></i> 客服列表</a>
							</li>
							<li>
								<a href="/index.php?g=admin&m=feedbook&a=index&isreply=0"><i class="glyphicon glyphicon-menu-right"></i> 添加客服</a>
							</li>
						</div>

						<p id="p_sys"><i class="glyphicon glyphicon-cog"></i> 系统设置</p>
						<div class="menu_body" id="b_sys">
							<li>
								<a href="/index.php?g=admin&m=site&a=info">站点设置</a>
							</li>
							<li>
								<a href="/index.php?g=admin&m=user&a=index">管理员设置</a>
							</li>
						</div>
					</div>
				</div>

				<div class="col-md-10">

					<script type="text/javascript">
						$(document).ready(function() {
							$(".preview").preview();
						});

						function jumpUrl() {
							v = document.getElementById("path").options[document.getElementById("path").selectedIndex].value;
							url = "/index.php?g=admin&m=article&a=index&path=" + v;
							window.location.href = url;
						}
					</script>

					<ol class="breadcrumb">
						<li>
							<a href="/index.php?g=admin&m=article&a=index">文章管理</a>
						</li>
						<li class="active">列表</li>
					</ol>

					<form id="ajaxForm" action="/index.php?g=admin&m=article&a=save" method="post" class="form-horizontal form-validata">
						<div class="form-group">
							<label class="col-md-1 control-label" for="title">文章标题</label>
							<div class="col-md-11">
								<input type="text" class="form-control" name="title" id="title" data-rule-required="true" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-1 control-label" for="title">短标题</label>
							<div class="col-md-3">
								<input type="text" class="form-control" name="short" id="short" data-rule-required="true" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-1 control-label" for="cid">分类</label>
							<div class="col-md-11">
								<select name="cid" id="cid" class="form-control" data-rule-required="true">
									<option value="">==请选择==</option>
									<option value="1,0-1-"> 职业指导</option>
									<option value="2,0-2-"> 面试宝典</option>
									<option value="3,0-3-"> 劳动法苑</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-1 control-label" for="keyword">站外链接</label>
							<div class="col-md-11">
								<input type="text" class="form-control" name="url" id="url" class="span5" data-rule-url="true" />
								<p>使用站外链接，点击该文章后会直接跳转到外部链接地址</p>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-1 control-label" for="picname">缩略图</label>
							<div class="col-md-11">
								<img id="picname_src" src="/tpl/static/image/image.jpg" style="height:100px; width:100px;" />
								<input type="hidden" name="picname" id="picname" />
								<p class="pic-btn"><input type="button" value="上传" class="btn btn-default btn-sm" onclick="uploadImage( '/index.php?g=admin&m=upload&a=image' , 'picname')" /> <input type="button" value="删除图片" class="btn btn-default btn-sm" onclick="delImage('picname')" /></p>
							</div>
						</div>
						<div class="form-group">
							<div class="col-md-11 col-md-offset-1">
								<label class="checkbox-inline">
					<input type="checkbox" name="exp" id="exp" value="1"> 以正文第一张为缩略图
				</label>
							</div>
						</div>

						<div class="form-group">
							<label class="col-md-1 control-label" for="keyword">属性</label>
							<div class="col-md-11">
								<label class="checkbox-inline">
					<input type="checkbox" name="flash" id="flash" value="1"> 幻灯
				</label>
								<label class="checkbox-inline">
				  	<input type="checkbox" name="comm" value="1"> 推荐
				</label>
								<label class="checkbox-inline">
				  	<input type="checkbox" name="top" value="1"> 置顶
				</label>
								<label class="checkbox-inline">
				  	<input type="checkbox" name="bold" value="1"> 加粗
				</label>
								<label class="checkbox-inline">
				  	<input type="checkbox" name="red" value="1"> 套红
				</label>
							</div>
						</div>

						<div class="form-group">
							<label class="col-md-1 control-label" for="from">来源</label>
							<div class="col-md-2">
								<input type="text" class="form-control" name="from" id="from" />
							</div>
							<label class="col-md-1 control-label" for="from">作者</label>
							<div class="col-md-2">
								<input type="text" class="form-control" name="author" id="author" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-1 control-label" for="keyword">关键词</label>
							<div class="col-md-11">
								<input type="text" class="form-control" name="keyword" id="keyword" />
								<p>多个关键词用“,”号隔开</p>
							</div>
						</div>

						<div class="form-group">
							<label class="col-md-1 control-label" for="sort">排序</label>
							<div class="col-md-11">
								<input type="text" class="form-control" class="input-small" name="sort" id="sort" value="1" data-rule-required="true" data-rule-number="true" />
								<p>数字越小越靠前</p>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-1 control-label" for="keywords">描述</label>
							<div class="col-md-11">
								<textarea name="intr" class="form-control areatext"></textarea>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-1 control-label" for="keywords">正文</label>
							<div class="col-md-11">
								<textarea name="content" id="container">文章正文</textarea>
								<script type="text/javascript" src="/ueditor/my.config.js"></script>
								<script type="text/javascript" src="/ueditor/ueditor.all.js"></script>
								<script type="text/javascript" src="/ueditor/lang/zh-cn/zh-cn.js"></script>
								<script type="text/javascript">
									var defPath = "/uploads/";
									window.UEDITOR_CONFIG.imagePath = defPath; //插入编辑器中图片路径修正
									window.UEDITOR_CONFIG.filePath = defPath; //插入编辑器中文件路径修正
									window.UEDITOR_CONFIG.scrawlPath = defPath; //涂鸦默认路径
									var editor = UE.getEditor('container');
								</script>
							</div>
						</div>

						<div class="form-group">
							<div class="col-md-11 col-sm-offset-1">
								<button type="submit" class="btn btn-info">添加</button>
							</div>
						</div>
					</form>

					<script type="text/javascript">
						$("#path").val("");
					</script>

					<input type="hidden" id="menu_action" value="article" />
				</div>
			</div>

		</div>

		<script type="text/javascript">
			$(document).ready(function() {
				//幻灯片元素与类“menu_body”段与类“menu_head”时点击
				var menu_action = $("#menu_action").val();
				$("#p_" + menu_action).addClass("select");
				$("#b_" + menu_action).show().addClass("local");

				$("#nav p").click(function() {
					$(this).next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("slow");
					$("#nav p").removeClass("select");
					$(this).addClass("select");
					$(this).next("div.menu_body").addClass("local");
				});
			});
		</script>

	</body>

</html>